#tmd5.py    
import md5   
import hashlib    
   
src = 'this is a test.'    
m1 = md5.new()    
m1.update(src)    
dest1 = m1.hexdigest()    
   
m2 = hashlib.md5()    
m2.update(src)
print m2
dest2 = m2.hexdigest()

   
print 'source string: ', src    
print 'destination string1: ', dest1    
print 'destination string2: ', dest2    
